package com.lyj.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyj.mall.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author  lyj
 * @date  2020/1/7 23:10
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    IPage<Product> selectByCategoryIdSet(Page page, @Param("collection") Set<Integer> idSet);

    List<Product> selectByProductIdSet(@Param("productIdSet")Set<Integer> productIdSet);

}